Node
A base DOM object providing access to the common DOM object properties and methods to manage the DOM node structure.
Inheritors
Functions
Link copied to clipboard
public abstract void addEventListener(EventType eventType, Observer<Event> listener, boolean useCapture)
Adds the given
listener
to the event target.Link copied to clipboard
Adds the given
node
as a child of the current node to the end of its children list.Link copied to clipboard
Compares position of the current node against another node in a DOM tree.
Link copied to clipboard
Evaluates the given XPath
expression
for the node and returns the XPathResult
of the ANY type.Evaluates the given XPath
expression
for the node and returns the XPathResult
object of the given type
.Link copied to clipboard
Returns the immutable list of event listeners that listen events of the given
eventType
in a phase that corresponds the given useCapture
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
className
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
id
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
name
.Link copied to clipboard
Returns the first Element object found in the current search context by the given
tagName
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
className
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
cssSelector
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
id
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
name
.Link copied to clipboard
Returns an immutable list of the Element objects found in the current search context by the given
tagName
.Link copied to clipboard
Inserts the given
node
before the given beforeNode
as a child of the current node.Link copied to clipboard
Returns an
Optional
that contains the next node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Returns an
Optional
that contains the previous node in the document tree if such a node exists, otherwise returns an empty Optional
.Link copied to clipboard
Removes the given
childNode
of the current node from the DOM.Link copied to clipboard
public abstract void removeEventListener(EventType eventType, Observer<Event> listener, boolean useCapture)
Removes the given
listener
from the event target.Link copied to clipboard
Replaces the given child
oldNode
of the current node with the given newNode
.Link copied to clipboard
Returns the text content of the current node and its descendants.
Removes all the current node children and replaces them with a single text node with the given
textContent
.